// vite.config.ts
import vue from "file:///E:/sdl/sdl-ui/sdl-ui/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import { defineConfig, loadEnv } from "file:///E:/sdl/sdl-ui/sdl-ui/node_modules/vite/dist/node/index.js";
import { createHtmlPlugin } from "file:///E:/sdl/sdl-ui/sdl-ui/node_modules/vite-plugin-html/dist/index.mjs";
import tsconfigPaths from "file:///E:/sdl/sdl-ui/sdl-ui/node_modules/vite-tsconfig-paths/dist/index.mjs";
import { createSvgIconsPlugin } from "file:///E:/sdl/sdl-ui/sdl-ui/node_modules/vite-plugin-svg-icons/dist/index.mjs";
var __vite_injected_original_dirname = "E:\\sdl\\sdl-ui\\sdl-ui";
var vite_config_default = (config) => {
  const mode = config.mode;
  return defineConfig({
    base: "./",
    plugins: [
      vue(),
      createHtmlPlugin({
        minify: true,
        inject: {
          data: {
            apiURL: loadEnv(mode, process.cwd()).VITE_APP_API,
            title: ""
          },
          tags: [
            {
              injectTo: "body-prepend",
              tag: "div",
              attrs: {
                id: "tag"
              }
            }
          ]
        }
      }),
      tsconfigPaths(),
      createSvgIconsPlugin({
        iconDirs: [resolve(__vite_injected_original_dirname, "src/assets/icons/svg")],
        symbolId: "icon-[dir]-[name]"
      })
    ],
    build: {
      chunkSizeWarningLimit: 1024,
      commonjsOptions: {
        include: /node_modules|lib/
      },
      rollupOptions: {
        output: {
          manualChunks: {
            quill: ["quill"],
            lodash: ["lodash"],
            vlib: ["vue", "vue-router", "element-plus"]
          }
        }
      }
    },
    resolve: {
      alias: {
        // 配置别名
        "@": resolve(__vite_injected_original_dirname, "./src")
      }
    },
    server: {
      open: false,
      // 自动启动浏览器
      host: "0.0.0.0",
      // localhost
      port: 8001,
      // 端口号
      hmr: { overlay: false }
    }
  });
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbn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AgIGNyZWF0ZUh0bWxQbHVnaW4oe1xyXG4gICAgICAgIG1pbmlmeTogdHJ1ZSxcclxuICAgICAgICBpbmplY3Q6IHtcclxuICAgICAgICAgIGRhdGE6IHtcclxuICAgICAgICAgICAgYXBpVVJMOiBsb2FkRW52KG1vZGUsIHByb2Nlc3MuY3dkKCkpLlZJVEVfQVBQX0FQSSxcclxuICAgICAgICAgICAgdGl0bGU6IFwiXCJcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgICB0YWdzOiBbXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBpbmplY3RUbzogJ2JvZHktcHJlcGVuZCcsXHJcbiAgICAgICAgICAgICAgdGFnOiAnZGl2JyxcclxuICAgICAgICAgICAgICBhdHRyczoge1xyXG4gICAgICAgICAgICAgICAgaWQ6ICd0YWcnXHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICBdXHJcbiAgICAgICAgfVxyXG4gICAgICB9KSxcclxuICAgICAgdHNjb25maWdQYXRocygpLFxyXG4gICAgICBjcmVhdGVTdmdJY29uc1BsdWdpbih7XHJcbiAgICAgICAgaWNvbkRpcnM6IFtyZXNvbHZlKF9fZGlybmFtZSwgXCJzcmMvYXNzZXRzL2ljb25zL3N2Z1wiKV0sXHJcbiAgICAgICAgc3ltYm9sSWQ6IFwiaWNvbi1bZGlyXS1bbmFtZV1cIlxyXG4gICAgICB9KVxyXG4gICAgXSxcclxuICAgIGJ1aWxkOiB7XHJcbiAgICAgIGNodW5rU2l6ZVdhcm5pbmdMaW1pdDogMTAyNCxcclxuICAgICAgY29tbW9uanNPcHRpb25zOiB7XHJcbiAgICAgICAgaW5jbHVkZTogL25vZGVfbW9kdWxlc3xsaWIvXHJcbiAgICAgIH0sXHJcbiAgICAgIHJvbGx1cE9wdGlvbnM6IHtcclxuICAgICAgICBvdXRwdXQ6IHtcclxuICAgICAgICAgIG1hbnVhbENodW5rczoge1xyXG4gICAgICAgICAgIC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